remove hyperlink from text python

100

import re
text = re.sub(r'^https?:\/\/.*[\r\n]*', '', text, flags=re.MULTILINE)

Comments

Submit
0 Comments